﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Farming.EntityFarmeworkCore.Migrations
{
    public partial class farmingsystem07 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "CustomActionModels",
                columns: table => new
                {
                    CActionId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    CActionTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CActionName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CARequestAddress = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CALoginType = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CAResponseStatus = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CAResponselong = table.Column<int>(type: "int", nullable: true),
                    CARequestParams = table.Column<int>(type: "int", nullable: true),
                    CAResponseParams = table.Column<int>(type: "int", nullable: true),
                    CAErrorExpetion = table.Column<int>(type: "int", nullable: true),
                    CAUserIp = table.Column<int>(type: "int", nullable: true),
                    CABrowserType = table.Column<int>(type: "int", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_CustomActionModels", x => x.CActionId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "CustomActionModels");
        }
    }
}
